<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'bottom.jsp' starting page</title>
    
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
		<script type="text/javascript" src="<%=basePath%>/js/jquery-3.2.1.js"></script>
		<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
  </head>
  <script type="text/javascript">
  	$.get('/smm3/user/getserinfobysession', function(data) {
     console.log(data);
     var obj=eval("("+data+")"); //转换json
     var user = obj.user;
     $('.panel-body').html('上次登录ip:'+user.userLastLoginIp);
    });
  </script>
  
  <body>
  
  	<div class="panel panel-default">
  <div class="panel-body">
    
  </div>
</div>
</div>
  
  </body>
</html>
